<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>演示14.3中jQuery发送ajax请求</title>
		<style type="text/css">
			#div1{
				width: 700px;
				height: 300px;
				border: #000000 solid 1px;
			}
		</style>
	</head>
	<body>
		<input type="button" onclick="getCatEyes()" value="获取用户信息" />
		<div id="div1">
			
		</div>
		<script src="jquery1.11.1.js"></script>
		<script type="text/javascript">
			// 获取猫眼电影即将上映页面的数据
			function getCatEyes(){
				var catEyeUrl = 'http://127.0.0.1:8000/blog/query_user/';
				$.get(catEyeUrl, {}, function(data){
					$("#div1").html(data);
				}, 'json')
			}
			
			function postUser(){
				
			}
			
			function ajaxRequest(type){
				
			}
		</script>
	</body>
</html>
